﻿@model JinianNet.JNCms.Models.Category
<!DOCTYPE html>
<html>
<head>
    <title>@Model.Title - @JinianNet.JNCms.Config.Site.Name</title>
    @JinianNet.Web.ResourceManager.Script.Render("Manage/Base")
    @JinianNet.Web.ResourceManager.Style.Render("Manage/Base")
</head>
<body>
    @using (Html.BeginForm())
    { 
        <table width="95%" align="center" border="0" cellspacing="0" cellpadding="0" class="biggrid">
            <tr>
                <th colspan="2" align="left">&nbsp;</th>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">标　　题</td>
                <td><input class="input" type="text" id="Title" name="Title" value="@Model.Title" maxlength="100" />
                    <input type="hidden" id="ID" name="ID" value="@Model.ID" /> <span>*</span></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">父 栏 目</td>
                <td>&nbsp;&nbsp;@ViewBag.ParentName <input type="hidden" id="ParentName" value="@ViewBag.ParentName" name="ParentName" />
                    <input type="hidden" id="ParentID" name="ParentID" value="@Model.ParentID" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">关 键 词</td>
                <td><input class="input" type="text" id="KeyWords" name="KeyWords" value="@Model.KeyWords" maxlength="150" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">描　　述</td>
                <td>
                    <textarea class="textarea" id="Description" name="Description" cols="50" rows="3">@Model.Description</textarea></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">栏目别名</td>
                <td>
                    <input class="input" type="text" id="KeyName" name="KeyName" value="@Model.KeyName" maxlength="50" />
                    *只能使用字母、数字、-连字符、_下划线</td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">模板文件</td>
                <td>
                    <input class="input" type="text" id="TempLate" name="TempLate" value="@Model.TempLate" maxlength="50" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">文章模板</td>
                <td>
                    <input class="input" type="text" id="ChildTempLate" name="ChildTempLate" value="@Model.ChildTempLate" maxlength="50" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">排序指数</td>
                <td>
                    <input class="input" type="text" id="Rank" name="Rank"  maxlength="4" value="@Model.Rank" />
                    数字越大，排序越前</td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">创建时间</td>
                <td>
                    <input class="disabled" type="text" id="CreateTime" name="CreateTime" disabled="disabled" value="@Model.CreateTime" maxlength="50" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">属　　性</td>
                <td>
                    <input type="checkbox" class="cbxcheck" name="IsUrl" id="IsUrl" @(Model.IsUrl ? "checked=\"checked\"":"")/><label for="IsUrl">是否外链</label>
                    <input type="checkbox" class="cbxcheck" id="IsVerify" name="IsVerify" @(Model.IsVerify ? "checked=\"checked\"":"")/><label for="IsVerify">是否有效</label>
                </td>
            </tr>
            <tr id="trUrl">
                <td align="center" width="150" class="tm">外链地址</td>
                <td>
                    <input class="input" type="text" id="Url" name="Url" value="@Model.Url" maxlength="50" /></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <input type="submit" value="保存操作" />
                    <input type="button" value="返回上页" onclick="history.back()" /></td>
            </tr>
        </table>
    }
</body>
</html>
